//
//  HomeSingleImgTableViewCell.swift
//  XMYouPin
//
//  Created by 王宗成 on 2019/7/7.
//  Copyright © 2019 王宗成. All rights reserved.
//

import UIKit

class HomeSingleImgTableViewCell: WZC_TableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    var model:HomeFloorModel?
    {
        didSet
        {
            self.imgView.kf.setImage(with: URL(string: self.model?.data?.pic_url ?? ""))
        }
    }
    
    public lazy var imgView : UIImageView = {
        let imageView = UIImageView()
        self.addSubview(imageView)
        return imageView
    }()
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.contentView.backgroundColor = RGB(r: 246, g: 243, b: 249)
       
        self.imgView.snp.makeConstraints { (make) in
            
            make.edges.equalTo(UIEdgeInsets(top: 10, left: 0, bottom: 5, right: 0))
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
